FLAG = -quiet -force-tilde

all: ccsd.pdf

%.dvi: %.tex
	ctex $(FLAG) $<

%.pdf: %.dvi
	dvipdfmx $<

# dependence
ccsd.dvi: keith.sty \
	00_cover.tex \
	01_intro.tex \
	02_design.tex \
	03_arithmetic.tex \
	04_conclusion.tex \
	A01_encoding.tex

clean:
	-ctex -clean
	-rm -f *.log *.dvi *.pdf
